import request from '@/utils/request'

// 查询答卷题目列表
export function listExamMaster(reseachid) {
  return request({
    url: '/house_sale/ExamMaster/list/'+ reseachid,
    method: 'get'
  })
}
// 查询答卷题目详细
export function getinfo(reseachid) {
  return request({
    url: '/house_sale/ExamMaster/' + reseachid,
    method: 'get'
  })
}

// 查询答卷题目详细
export function getExamMaster(examid) {
  return request({
    url: '/house_sale/ExamMaster/' + examid,
    method: 'get'
  })
}

// 新增答卷题目
export function addExamMaster(data) {
  return request({
    url: '/house_sale/ExamMaster',
    method: 'post',
    data: data
  })
}

// 修改答卷题目
export function updateExamMaster(data) {
  return request({
    url: '/house_sale/ExamMaster',
    method: 'put',
    data: data
  })
}

// 删除答卷题目
export function delExamMaster(examid) {
  return request({
    url: '/house_sale/ExamMaster/' + examid,
    method: 'delete'
  })
}
